feat(auth): implementar autenticacao com Clerk e login social Google e GitHub - #5
Merged
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 Descrição
Implementação completa da funcionalidade de autenticação no app Sentinel utilizando o Clerk, integrando suporte a autenticação por e-mail/senha e login social (SSO) com Google e GitHub.
🛠️ Alterações Realizadas
app/_layout.tsx) comClerkProvideretokenCachebaseado emexpo-secure-store.app.json.app/(auth)/_layout.tsxpara redirecionar usuários autenticados para as abas principais (/(tabs)).app/(tabs)/_layout.tsxpara redirecionar usuários não autenticados para o login (/(auth)/sign-in).app/(auth)/sign-in.tsx: Tela de login com e-mail/senha, tratamento reativo de erros e login social (Google e GitHub).app/(auth)/sign-up.tsx: Tela de cadastro com envio e verificação de código OTP (6 dígitos) por e-mail, elemento de captcha para proteção contra bots e cadastro social.useUser()na tela Home (app/(tabs)/index.tsx) para exibir avatar e nome dinamicamente.app/(tabs)/settings.tsx) atualizada com dados do perfil e botão de logout (useClerk().signOut()).@clerk/expo,expo-secure-storeeexpo-auth-session.🧪 Como Testar
pnpm start -c.